<!doctype html>
<html lang="zh-cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
</head>
<link rel="stylesheet" th:href="@{/css/test.css}">
<div th:fragment="contextPath">
	<input id="contextPath" type="text" style="display: none;"
		th:value="${#servletContext.contextPath}"></input>
	<script type="text/javascript">
			var contextPath = $("#contextPath").val();
			$(function(){
				if(contextPath == "/"){
					contextPath = "";
				}
			});
		</script>
</div>
</html>